package grape.house.rest.client.impl.buildingroom;

import grape.house.rest.buildingroom.mvc.BuildingRoomInnerController;
import grape.house.rest.client.buildingroom.BuildingRoomClient;
import grape.house.service.buildingroom.po.BuildingRoom;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/9/28 16:37
 */
@Component
public class BuildingRoomClientImpl implements BuildingRoomClient {
    @Autowired
    private BuildingRoomInnerController buildingRoomInnerController;
    @Override
    public String trans(String type, String key) {
        return buildingRoomInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return buildingRoomInnerController.support(type);
    }

    @Override
    public BuildingRoom getBuildingRoomById(String id) {
        return buildingRoomInnerController.getBuildingRoomById(id);
    }

    @Override
    public BuildingRoom getBuildingRoomByCode(String code) {
        return buildingRoomInnerController.getBuildingRoomByCode(code);
    }
}
